#include "List.h"
#include <stdio.h>

BOOL list_isEmpty(ptrList list)
{
    return list->count==0 ? TRUE : FALSE;
}

BOOL list_isFull(ptrList list)
{
    return list->count==list->length ? TRUE : FALSE;
}

void list_create(ptrList list, int len)
{
    list->length = len;
    list->count = 0;
    list->head = (ptrNode)malloc(sizeof(Node));
    ptrNode front;
    ptrNode back;
    back = list->head;
    for(int i; i<len; i++))
    {
        front = (ptrNode)malloc(sizeof(Node));
        front->next = NULL;
        back->next = front;
        back = front;
    }
}

void  list_show(ptrList list)
{
    ptrNode n;
    ptrNode back;
    n = list->head;
    if(list_isEmpty(list))
    {
        printf("list is empty\n");
        return;
    }
    while(n)
}
